package org.jianfa.mq.seckill.mapper;

import java.util.List;
import org.jianfa.mq.seckill.entity.po.SeckillGoods;
import org.jianfa.mq.seckill.entity.vo.GoodsVo;

public interface SeckillGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SeckillGoods record);

    SeckillGoods selectByPrimaryKey(Long id);

    List<SeckillGoods> selectAll();

    int updateByPrimaryKey(SeckillGoods record);

    int reduceStocke(Long goodsId);

    GoodsVo selectWithDetailByPrimaryKey(Long id);

    List<GoodsVo> selectWithDetailAll();
}